package cn.befory.pojo;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单明细
 * @author befory
 * @since 2019-10-7
 */
public class OrderDetails implements Serializable {
    private static final long serialVersionUID = -2642952455842730270L;
    private Long id;
    /**
     * 订单id
     */
    private Long orderId;
    /**
     * 产品id
     */
    private Long productId;
    /**
     * 成交价
     */
    private BigDecimal transactionPrice;
    /**
     * 成交数量
     */
    private BigDecimal num;

    public Long getId() {
        return id;
    }

    public OrderDetails setId(Long id) {
        this.id = id;
        return this;
    }

    public Long getOrderId() {
        return orderId;
    }

    public OrderDetails setOrderId(Long orderId) {
        this.orderId = orderId;
        return this;
    }

    public Long getProductId() {
        return productId;
    }

    public OrderDetails setProductId(Long productId) {
        this.productId = productId;
        return this;
    }

    public BigDecimal getTransactionPrice() {
        return transactionPrice;
    }

    public OrderDetails setTransactionPrice(BigDecimal transactionPrice) {
        this.transactionPrice = transactionPrice;
        return this;
    }

    public BigDecimal getNum() {
        return num;
    }

    public OrderDetails setNum(BigDecimal num) {
        this.num = num;
        return this;
    }
}
